appchooserbutton: filter out applications not supposed to be visible
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 22 Mar 2013 16:44:27 +0000 (12:44 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 22 Mar 2013 19:27:41 +0000 (15:27 -0400)
Ensure NoDisplay=true applications don't end up in the list populated by
GtkAppChooserButton.

https://bugzilla.gnome.org/show_bug.cgi?id=696405

gtk/gtkappchooserbutton.c

index 235464c58e80cd1d1cffb2033bf44c4f02c91f56..133ce349325b17a886bf169e1f4d6366324d5493 100644 (file)
@@ -348,6 +348,9 @@ gtk_app_chooser_button_populate (GtkAppChooserButton *self)
     {
       app = l->data;
 
+      if (!g_app_info_should_show (app))
+        continue;
+
       if (default_app != NULL && g_app_info_equal (app, default_app))
         continue;